﻿using System.Reflection;
using Windows.ApplicationModel;
using Windows.UI.Xaml;

namespace Smile.Mvvm.Service
{
    /// <summary>Service which provides application informations.</summary>
    public class AppInfoService : IAppInfoService
    {
        // @Properties
        public string Version
        {
            get 
            {
                var ver = Package.Current.Id.Version;
                return ver.Major.ToString() + 
                    "." + ver.Minor.ToString() + 
                    "." + ver.Build.ToString() + 
                    "." + ver.Revision.ToString();
            }
        }
    }
}
